import axios from "./axios";
export const postRegister = (data: any) => {
    return axios({
        url: "http://localhost:12345/api/user/register",
        method: "post",
        data: data
    })
}
export const postLogin = (data: any) => {
    return axios({
        url: "http://localhost:12345/api/user/login",
        method: "post",
        data: data
    })
}
export const getHome = () => {
    return axios({
        url: "http://localhost:12345/api/show/indexList",
        method: "get"
    })
}
export const getList = () => {
    return axios({
        url: "http://localhost:12345/api/show/listList",
        method: "get"
    })
}
export const getDetails = (id: any) => {
    return axios({
        url: "http://localhost:12345/api/show/detail/" + id,
        method: "get",
        data: { id }
    })
}